const routes = [
    {
        path: '/',
        name: 'HOME',
        component: () => import('../components/mainPage.vue'),
        redirect: "/home",
        children: [
            {
                path: '/home',
                name: 'home',
                component: () => import('../components/home/home.vue'),
            },
            {
                path: '/scenario',
                name: 'scenario',
                component: () => import('../components/scenario/scenario.vue'),
            },
            {
                path: '/find',
                name: 'find',
                component: () => import('../components/find/find.vue'),
            },
            {
                path: '/user',
                name: 'user',
                component: () => import('../components/user/user.vue'),
            },
            {
                path: '/test',
                name: 'test',
                component: () => import('../components/test/test.vue'),
            },
        ]
    }, {
        path: '/device',
        name: 'device',
        component: () => import('../components/home/device.vue'),
    }, {
        path: '/room',
        name: 'room',
        component: () => import('../components/home/room.vue'),
    }, {
        path: '/addroom',
        name: 'addroom',
        component: () => import('../components/home/addroom.vue'),
    },{
        path: '/setscenario',
        name: 'setscenario',
        component: () => import('../components/scenario/setscenario.vue'),
    }
]
export default routes